﻿using System;
using System.Web;
using System.Text;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;


namespace AnyOffice.module.date_selector
{
    public partial class clock : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = (Request.QueryString["fieldname"] != null) ? Request.QueryString["fieldname"].ToString() : "";
            this.ViewState["FieldName"] = str;
            string str2 = (DateTime.Now.Hour.ToString().Length == 1) ? ("0" + DateTime.Now.Hour.ToString()) : DateTime.Now.Hour.ToString();
            if (this.selectHour.Items.FindByValue(str2) != null)
            {
                this.selectHour.Items.FindByValue(str2).Selected = true;
            }
            string str3 = (DateTime.Now.Minute.ToString().Length == 1) ? ("0" + DateTime.Now.Minute.ToString()) : DateTime.Now.Minute.ToString();
            if (this.selectMinute.Items.FindByValue(str3) != null)
            {
                this.selectMinute.Items.FindByValue(str3).Selected = true;
            }
            string str4 = (DateTime.Now.Second.ToString().Length == 1) ? ("0" + DateTime.Now.Second.ToString()) : DateTime.Now.Second.ToString();
            if (this.selectSecond.Items.FindByValue(str4) != null)
            {
                this.selectSecond.Items.FindByValue(str4).Selected = true;
            }
        }

 

 

    }
}
